SPAHA00401_건진환자선택[비자건진].xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SPAHA00400.xrw
  4. * 설 명 : 건진환자선택
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 손주연
  7. * 작 성 일 : 2007.04.13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>건진환자선택</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <patinfo>
  20. <item>
  21. <pid/>
  22. <visano/>
  23. <orddd/>
  24. <engnm/>
  25. <hannm/>
  26. <brthareacnts/>
  27. <pkgnm/>
  28. <telno/>
  29. <mpphon/>
  30. <remfact/>
  31. <remcnts/>
  32. </item>
  33. </patinfo>
  34. </main>
  35. <send>
  36. <srchcond>pid</srchcond>
  37. <srchpid/>
  38. <srchpnm/>
  39. <srchrgstno1/>
  40. <srchrgstno2/>
  41. <srchinstcd/>
  42. <srchengnm/>
  43. </send>
  44. <init/>
  45. <hidden>
  46. <patinfo>
  47. <item/>
  48. </patinfo>
  49. </hidden>
  50. <target>
  51. <srchcond/>
  52. <srchpnm/>
  53. <srchpid/>
  54. <setflag/>
  55. <desxpath/>
  56. <setyn/>
  57. </target>
  58. </root>
  59. </instance>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
  65. <submission id="TRAHA00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/patinfo"/>
  66. <script type="javascript" ev:event="xforms-ready">
  67. <![CDATA[
  68. fInit();
  69. cmb_cond.select(0);
  70. ]]>
  71. </script>
  72. </model>
  73. <script type="javascript">
  74. <![CDATA[
  75. function fInit(){
  76. model.removeNodeset("/root/main/patinfo/item");
  77. }
  78. /**========================================================================================================================
  79. ** 환자리스트 조회
  80. *========================================================================================================================*/
  81. function fGetPatList(bInit){
  82. if( bInit == true ) {
  83. fInit();
  84. }
  85. var vCond = model.getValue("/root/send/srchcond");
  86. if( vCond == "" ) {
  87. vCond = "rgstno";
  88. }
  89. /**
  90. * 환자명으로 조회시 두자이상 입력 체크
  91. */
  92. var vPnm = model.getValue("/root/send/srchpid") ;
  93. if( vCond == "rgstno" ){
  94. vPnm = model.getValue("/root/send/srchrgstno1");
  95. if( vPnm.length < 1 ) {
  96. messageBox("주민번호를 입력하세요!", "E999");
  97. return ;
  98. }
  99. }else if( vCond == "engnm" ){
  100. if( vPnm.length < 2 ) {
  101. messageBox("영문이름을 두자이상 입력하세요!", "E999");
  102. return ;
  103. }
  104. }else if( vCond == "hannm" ){
  105. if( vPnm.length < 2 ) {
  106. messageBox("한글이름을 두자이상 입력하세요!", "E999");
  107. return ;
  108. }
  109. }else{
  110. if( vPnm.length < 1 ) {
  111. messageBox("등록번호를 입력하세요!", "E999");
  112. return ;
  113. }
  114. }
  115. /**
  116. * 이외에는...null일경우 조회되지 않도록
  117. */
  118. model.setValue("/root/send/srchcond", vCond);
  119. model.setValue("/root/send/srchpnm", model.getValue("/root/send/srchpid") );
  120. model.setValue("/root/send/srchengnm", model.getValue("/root/send/srchpid") );
  121. model.setValue("/root/send/srchinstcd", getUserInfo("dutplceinstcd"));
  122. submit("TRAHA00121");
  123. var node = instance1.selectSingleNode("/root/hidden/patinfo/item");
  124. if( node != null ){
  125. model.copyNode("/root/main/patinfo", "/root/hidden/patinfo");
  126. }
  127. model.refresh();
  128. }
  129. /**=====================================================================================
  130. * SMAHA00400_PARAM1 : 현재화면ID
  131. * SPAHA00400_PARAM2 : 검색조건 pnm/pid/rgstno
  132. * SPAHA00400_PARAM3 : 검색어
  133. * SPAHA00400_PARAM4 : nodeset전체 copy여부 (N일경우 원무등록번호와 환자 한글명만 copy)
  134. * SPAHA00400_PARAM5 : nodeset전체 copy여부 Y 일경우 대상노드
  135. * SPAHA00400_PARAM6 : nodeset전체 copy여부 N 일경우 원무등록번호 대상노드
  136. * SPAHA00400_PARAM7 : nodeset전체 copy여부 N 일경우 환자 한글명 대상노드
  137. * =====================================================================================
  138. */
  139. function fSetPatinfo(){
  140. var idx = grd_patlst.row;
  141. if( idx < 1) {
  142. return ;
  143. }
  144. if( checkOpener() ) {
  145. //var vFg = model.getValue("/root/target/setflag");
  146. var vOpener = opener.javascript.getParameter("SPAHA00400_PARAM1");
  147. var bSetYN = opener.javascript.getParameter("SPAHA00400_PARAM4");
  148. var vDestXPath = opener.javascript.getParameter("SPAHA00400_PARAM5");
  149. var vDestPid = opener.javascript.getParameter("SPAHA00400_PARAM6");
  150. var vDestPnm = opener.javascript.getParameter("SPAHA00400_PARAM7");
  151. //종합건진 접수화면
  152. if( bSetYN == "N" ){
  153. if( vDestPid == "" ) {
  154. opener.model.setValue(vDestXPath + "/pid" , model.getValue( "/root/main/patinfo/item[" + idx + "]/pid" ) );
  155. opener.model.setValue(vDestXPath + "/hngnm" , model.getValue( "/root/main/patinfo/item[" + idx + "]/hngnm" ));
  156. }
  157. else {
  158. opener.model.setValue(vDestPid , model.getValue( "/root/main/patinfo/item[" + idx + "]/pid" ) );
  159. opener.model.setValue(vDestPnm , model.getValue( "/root/main/patinfo/item[" + idx + "]/hngnm" ));
  160. }
  161. }
  162. else {
  163. copyNodesetType(vDestXPath , "/root/main/patinfo/item[" + idx + "]", "replace",opener.model, model );
  164. }
  165. /*
  166. */
  167. opener.model.setValue("/root/temp/okflag", "ok");
  168. opener.model.refresh();
  169. window.close();
  170. }
  171. }
  172. ]]>
  173. </script>
  174. </xhtml:head>
  175. <xhtml:body pagewidth="860" pageheight="500" guideline="1,731;2,343;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  176. <group id="group3" scroll="auto" style="left:0px; top:0px; width:850px; height:450px; ">
  177. <group id="group2" style="left:0px; top:0px; width:850px; height:35px; vertical-align:top; ">
  178. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:850px; height:35px; "/>
  179. <caption id="caption2" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">검색조건 :</caption>
  180. <button id="btn_search" class="btn1_letter2" style="left:445px; top:7px; width:56px; height:22px; ">
  181. <caption>조회</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. fGetPatList(true);
  185. ]]>
  186. </script>
  187. </button>
  188. <line id="line13" class="line_4" style="x1:429px; y1:7px; x2:429px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  189. <select1 id="cmb_cond" ref="/root/send/srchcond" class="combo_search" appearance="minimal" style="left:101px; top:8px; width:89px; height:19px; ">
  190. <choices>
  191. <item>
  192. <label>주민번호</label>
  193. <value>rgstno</value>
  194. </item>
  195. <item>
  196. <label>성명(한글)</label>
  197. <value>hannm</value>
  198. </item>
  199. <item>
  200. <label>성명(영문)</label>
  201. <value>engnm</value>
  202. </item>
  203. <item>
  204. <label>등록번호</label>
  205. <value>pid</value>
  206. </item>
  207. </choices>
  208. <script type="javascript" ev:event="xforms-select">
  209. <![CDATA[
  210. var vCond = cmb_cond.value ;
  211. model.resetInstanceNode("/root/send/srchpid");
  212. model.resetInstanceNode("/root/send/srchpnm");
  213. model.resetInstanceNode("/root/send/srchengnm");
  214. model.resetInstanceNode("/root/send/srchrgstno1");
  215. model.resetInstanceNode("/root/send/srchrgstno2");
  216. if( (vCond == "pid" ) || (vCond == "pnm" ) || (vCond == "engnm" ) ){
  217. model.setFocus("ipt_pid");
  218. }
  219. else
  220. if(vCond == "rgstno"){
  221. model.setFocus("ipt_rgstno1");
  222. }
  223. ]]>
  224. </script>
  225. </select1>
  226. <input id="ipt_pid" ref="/root/send/srchpid" class="input_search" style="left:194px; top:8px; width:100px; height:19px; ">
  227. <script type="javascript" ev:event="onkeyup">
  228. <![CDATA[
  229. inputEnterKey("btn_search", "DOMActivate");
  230. ]]>
  231. </script>
  232. </input>
  233. <input id="ipt_rgstno1" ref="/root/send/srchrgstno1" class="input_search" format="999999" style="left:297px; top:8px; width:60px; height:19px; "/>
  234. <input id="ipt_rgstno2" ref="/root/send/srchrgstno2" class="input_search" format="9999999" style="left:360px; top:8px; width:60px; height:19px; ">
  235. <script type="javascript" ev:event="onkeyup">
  236. <![CDATA[
  237. inputEnterKey("btn_search", "DOMActivate");
  238. ]]>
  239. </script>
  240. </input>
  241. </group>
  242. <caption id="caption1" class="tit_2" style="left:5px; top:45px; width:95px; height:14px; ">건진자리스트</caption>
  243. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:850px; y2:60px; "/>
  244. <datagrid id="grd_patlst" nodeset="/root/main/patinfo/item" caption="등록번호^비자연번^건진일자^한글명^영문명^비자국가^패키지명^집번호^핸드폰번호^REMARK^특이사항" colsep="^" colwidth="75, 75, 70, 50, 100, 54, 95, 70, 75, 100, 100" dataheight="23" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:65px; width:855px; height:345px; ">
  245. <col ref="pid" type="input"/>
  246. <col ref="visano" type="input"/>
  247. <col ref="orddd" format="yyyy-mm-dd"/>
  248. <col ref="engnm"/>
  249. <col ref="hannm"/>
  250. <col ref="brthareacnts"/>
  251. <col ref="pkgnm"/>
  252. <col ref="telno"/>
  253. <col ref="mpphon"/>
  254. <col ref="remfact"/>
  255. <col ref="remcnts"/>
  256. <script type="javascript" ev:event="ondblclick">
  257. <![CDATA[
  258. //fSetPatinfo();
  259. ]]>
  260. </script>
  261. <script type="javascript" ev:event="onaftersort">
  262. <![CDATA[
  263. grd_patlst.gridToInstance();
  264. ]]>
  265. </script>
  266. </datagrid>
  267. </group>
  268. <group id="group1" scroll="auto" style="left:0px; top:405px; width:850px; height:25px; ">
  269. <button id="btn_confirm" class="btn4_letter2" visibility="hidden" style="left:727px; top:2px; width:56px; height:22px; ">
  270. <caption>확인</caption>
  271. <script type="javascript" ev:event="DOMActivate">
  272. <![CDATA[
  273. fSetPatinfo();
  274. window.close();
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="btn_cancel" class="btn4_letter2" style="left:791px; top:2px; width:56px; height:22px; ">
  279. <caption>닫기</caption>
  280. <script type="javascript" ev:event="DOMActivate">
  281. <![CDATA[
  282. window.close();
  283. ]]>
  284. </script>
  285. </button>
  286. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:518px; y2:0px; "/>
  287. </group>
  288. </xhtml:body>
  289. </xhtml:html>